﻿using System;
using Framework.MVC;
using Identity.Model;
using Identity.IService;
using Identity.Service;
using Framework.MVVM.Model;


namespace FrontCenter.Models
{
    [ServiceAttribute(typeof(IVerifyCodeService), typeof(VerifyCodeService), "Instance")]
    public class DeleteVerifyCode : AsyncModelBase, IDeleteVerifyCode
    {
        #region AsyncModelBase

        protected override void OnInit(Type type)
        {
            this.OnBeginRequest();
            this.DeleteVerifyCode(Resource, string.Empty, string.Empty);
        }

        #endregion AsyncModelBase

        #region IDeleteVerifyCode

        #endregion IDeleteVerifyCode


        public void OnDeleteVerifyCodeComplete(string key, bool result)
        {
            this.OnEndRequest();
        }

        public void OnDeleteVerifyCodeError(string key)
        {
            this.OnEndRequest();
        }

        public string Resource { get; set; }

        public string VerifyCode
        { get; set; }
    }
}